<?php
/**
 * Prado Portal.
 *
 * @author Steen Rabol <steen.rabol@gmail.com>
 * @link http://www.pradoportal.dk/
 * @copyright Copyright &copy; 2006,2007,2008 Steen Rabol
 * @license http://www.pradoportal.dk
 * @version $Id: OnlineUserInfoPortlet.php 408 2011-01-04 21:20:50Z steen.rabol $
 * @package Pradoportal.Porttlets.SimpleTextPortlet.Edit
 *
 */

Prado::using('Application.Portlets.Portlet');
//Prado::using('Application.Portlets.OnlineUserInfoPortlet.Common.OnlineUserInfoPortletRecord');
class OnlineUserInfoPortlet extends Portlet
{
	public function SaveContent($sender,$param)
	{
	}

	public function CancelContent($sender,$param)
	{
		$this->dataBind();
	}

	public function DeleteButtonClicked($sender,$param)
	{
		// Delete any portlet specific content from db
		if($this->ConfigRecord)
		{
			if($this->ConfigRecord !== null)
			{
				if($this->ConfigRecord instanceof PortalActiveRecord)
				{
					$this->ConfigRecord->delete();
				}
			}
		}

		parent::DeleteButtonClicked($sender,$param);
	}
}
?>